class MIS(object):
    def verify_user(self, p_user):
        pass
    def verify_pwd(self, p_wd):
        pass

    def login(self,p_user,p_pwd):
        if self.verify_user(p_user) and self.verify_pwd(p_pwd):
            return True
        else:
            return False


class A(MIS):
    def verify_user(self, p_user):
        if p_user.isalnum():
            return True
        else:
            return False

    def verify_pwd(self, p_wd):
        if len(p_wd) > 5 and len(p_wd) < 13 and (p_wd.count('#') or p_wd.count('*') ):
            return True
        else:
            return False

    def login(self,p_user,p_pwd):
        if super().login(p_user,p_pwd):
            print('登陆成功')
        else:
            print('登陆失败')

class B(MIS):
    def verify_user(self, p_user):
        if len(p_user) == 0:
            return False
        else:
            return True

    def verify_pwd(self, p_wd):
        if len(p_wd) > 5 and len(p_wd) < 13:
            return True
        else:
            return False

    def login(self,p_user,p_pwd):
        if super().login(p_user,p_pwd):
            print('B 登陆成功')
        else:
            print('B 登陆失败')

def check_login(p_mis,p_user,p_pwd):
    p_mis.login(p_user,p_pwd)

check_login(A(),'980D','123456#')